<template>
  <router-view/>
  <button @click="$store.commit('user/setToken',Math.random()* 100)">修改token</button>
</template>

<script>
export default {
  created () {
    console.log('store实例', this.$store, this.$store.state.user.profile.token)
  }
}
</script>
<style lang="less">

</style>
